package com.sy.simpleegg.room.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey


@Entity(tableName = "tb_control_board")
data class ControlBoardEntity(
    @PrimaryKey(autoGenerate = true) var id: Long = 0,
    @ColumnInfo(name = "type") var type: Int = 1,
    @ColumnInfo(name = "name") var name: String = "",
    @ColumnInfo(name = "connect") var connect: Int = 1,//1-在线 0-离线
    @ColumnInfo(name = "date") var date: String = "",//yyyy-MM-dd
    @ColumnInfo(name = "time") var time: String = ""//HH:mm:ss
){
    @Ignore()
    constructor(): this(0)
}
